import { defHttp } from '@/utils/http/axios'

// 查询海运订单列表
export function getOrderPage(params) {
    return defHttp.get({ url: '/seatransportation/order/page', params })
}

// 查询海运订单详情
export function getOrder(id: number) {
    return defHttp.get({ url: '/seatransportation/order/get?id=' + id })
}

// 新增海运订单
export function createOrder(data) {
    return defHttp.post({ url: '/seatransportation/order/create', data })
}

// 修改海运订单
export function updateOrder(data) {
    return defHttp.put({ url: '/seatransportation/order/update', data })
}

// 删除海运订单
export function deleteOrder(id: number) {
    return defHttp.delete({ url: '/seatransportation/order/delete?id=' + id })
}

// 导出海运订单 Excel
export function exportOrder(params) {
    return defHttp.download({ url: '/seatransportation/order/export-excel', params }, '海运订单.xls')
}
